package com.ebelter.btcomlib.models.bluetooth.products.bracelet.bean;


import com.ebelter.btcomlib.models.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

@Table(database = AppDatabase.class)
public class BraDb extends BaseModel {

    public static final String TAG = "BraDb";

    @PrimaryKey(autoincrement = true)//ID自增
    public long id;


//    @Column
//    public String authKey;//用户的authKey


    @Column
    public long timeStr;//数据的时间--来自设备的--格式是1809110900 代表是2018年9月11日9点00分钟到10分钟之间的数据


    @Column
    public long dateType;
    //0x01 为记步数据 0x10 为睡眠数据（0x11 为开始睡眠 0x12 为清醒状态 0x13 为浅睡状态 0x14 为深睡状态 0x15 为结束睡眠）

    @Column
    public String affiliationDate;//"2018-09-01"


    @Column
    public int step;//步数

    @Column
    public int heart;

    @Column
    public int heart1;
    @Column
    public int heart2;

    @Column
    public int heart3;




    @Override
    public String toString() {
        return "BraDb{" +
                "id=" + id +
                ", timeStr=" + timeStr +
                ", dateType=" + dateType +
                ", affiliationDate='" + affiliationDate + '\'' +
                ", step=" + step +
                ", heart=" + heart +
                ", heart1=" + heart1 +
                ", heart2=" + heart2 +
                ", heart3=" + heart3 +
                '}';
    }
}
